package org.hotpotmaterial.code.controller;

import org.hotpotmaterial.anywhere.common.mvc.rest.basic.ResultDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;

@Api(value = "CountData", description = "the project API")
@RequestMapping(value = "/codegen/api/v1")
public interface CountDataApi {
  
  /**
   * 使用人数
   */
  @ApiOperation(value = "代码生成器使用人数", notes = "代码生成器使用人数", response = ResultDTO.class, tags = {"CountData"})
  @ApiResponses(
      value = {@ApiResponse(code = 200, message = "返回操作成功信息", response = ResultDTO.class),
          @ApiResponse(code = 200, message = "返回错误信息", response = ResultDTO.class)})
  @RequestMapping(value = "/countdata/people", produces = {"application/json"},
      method = RequestMethod.GET)
  ResponseEntity<ResultDTO> people();
  
 
  @ApiOperation(value = "代码生成器使用人数", notes = "代码生成器使用人数", response = ResultDTO.class, tags = {"CountData"})
  @ApiResponses(
      value = {@ApiResponse(code = 200, message = "返回操作成功信息", response = ResultDTO.class),
          @ApiResponse(code = 200, message = "返回错误信息", response = ResultDTO.class)})
  @RequestMapping(value = "/countdata/line", produces = {"application/json"},
      method = RequestMethod.GET)
  ResponseEntity<ResultDTO> line();
  @ApiOperation(value = "代码生成器使用人数", notes = "代码生成器使用人数", response = ResultDTO.class, tags = {"CountData"})
  @ApiResponses(
      value = {@ApiResponse(code = 200, message = "返回操作成功信息", response = ResultDTO.class),
          @ApiResponse(code = 200, message = "返回错误信息", response = ResultDTO.class)})
  @RequestMapping(value = "/countdata/active/{date}", produces = {"application/json"},
      method = RequestMethod.GET)
  ResponseEntity<ResultDTO> active(@PathVariable(value = "date", required = true)String date);
}
